# -*- coding:utf-8 -*-

""" constants """
EMAIL = 'taballa+i@gmail.com'
EMAILTO = 'mailto:'+EMAIL
HOST='http://'+request.env.http_host


""" title """
response.title = "爱促销"


""" menu """
APPLICATION = request.application
CONTROLLER = request.controller

ICUXIAO = URL(r=request, a=APPLICATION, c='default', f='index')
ITAOBAO = URL(r=request,a='itaobao',c='default',f='index')
MAIN = URL(r=request,a='main' ,c='default',f='index')
TEMPLATE = URL(r=request, a=APPLICATION, c='template', f='index')
STOCK = URL(r=request, a=APPLICATION, c='stock', f='index')
PREVIEW = URL(r=request, a=APPLICATION, c='preview', f='index')
COMPLETE = URL(r=request, a=APPLICATION, c='complete', f='index')
EDITER = URL(r=request, a=APPLICATION, c='editer', f='index')


response.menu = [
    ['1. 选择模板 ->', False, TEMPLATE],
    ['2. 填充模板 ->', False, EDITER],
    ['3. 预览 ->', False, PREVIEW],
    ['4. 完成', False, COMPLETE],
]
for i in range(len(response.menu)):
    if CONTROLLER in response.menu[i][2]:
        response.menu[i][1] = True

""" other """
APPLICATIONNAME = "爱促销"